/**
 * ProjectName:  mall-service
 * FileName:  MessageService.java
 * PackageName:  com.blx.service
 * Copyright (c) 2013, CYOU All Rights Reserved.
*/
package com.blx.service;

import com.blx.entity.Message;
import com.blx.utils.pagination.Pagination;

/**
 * ClassName: MessageService. <br/>
 * Description:  Message接口 <br/>
 * @author wangwl
 * 2013-3-4 下午8:51:59 <br/>
 * @version 1.0
 */
public interface MessageService {
	/**
	 * 保存Message实体 <br/>
	 * @param message
	 * @author wangwl
	 * 2013-3-4 下午8:59:29
	 */
	public void saveMessage(Message message);

	/**
	 * 更新Message实体<br/>
	 * @param message
	 * @author wangwl
	 * 2013-3-4 下午8:59:52
	 */
	public void updateMessage(Message message);
	/**
	 * 根据id删除Message实体 <br/>
	 * @param messageId
	 * @author wangwl
	 * 2013-3-4 下午9:00:14
	 */
	public void deleteMessageById(Integer messageId);
	/**
	 * 根据id获取Message实体 <br/>
	 * @param messageId
	 * @return
	 * @author wangwl
	 * 2013-3-4 下午9:00:32
	 */
	public Message getMessage(Integer messageId);
	/**
	 * 分页查询Message <br/>
	 * @param pageNumber
	 * @param pageSize
	 * @return
	 * @author wangwl
	 * 2013-3-4 下午9:01:23
	 */
	public Pagination<Message> findPageMessageAll(int pageNumber,int pageSize);
}

